package com.anzia.pagejump;

import com.anzia.pagejump.slice.SecondAbilitySlice;
import com.anzia.pagejump.slice.SecondPageSlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class SecondAbility extends Ability {
	@Override
	public void onStart(Intent intent) {
		super.onStart(intent);
		super.setMainRoute(SecondPageSlice.class.getName());

		// 第一个参数为：config.json中声明的actions；第二个参数为：要跳转目标Slice的路径名
		super.addActionRoute("abilityslice2", SecondPageSlice.class.getName());
	}
}
